//////////////////////////////////////////////////////////////////////////
///	\file:	ISocketManager.h
///	Copyright (MingYou) 2009 - All Rights Reserved
///	Author:	Robert.Ma
///	Date:	[2009/05/20]
///	Description:
///		
//////////////////////////////////////////////////////////////////////////
#pragma once

struct INetCallback;

struct ISocketManager
{
	virtual BOOL IsConnected() PURE;
	virtual BOOL Connect(const BYTE* pszAddr, int iPort) PURE;

	virtual int Write(const BYTE* pData, DWORD dwLen) PURE;

	virtual BOOL Initialize(INetCallback* pCallback) PURE;
	virtual BOOL IsCacheFull() PURE;

	virtual void CloseNet() PURE;
	virtual BOOL OpenNet() PURE;
};
